<p><?= $this->weight ?>g重量计算</p>
<table>
    <tr>
        <td>名称</td>
        <td>代理</td>
        <td>渠道</td>
        <td>类型</td>
        <td>首重</td>
        <td>续重</td>
        <td>单价</td>
        <td>基本费用</td>
        <td>燃油费</td>
        <td>总价</td>
    </tr>
    <? foreach ($this->costs as $item){ 
        ?>
    <tr class="erow <?= $item->Express->Description ?>">
        <td><?= $item->Express->Name ?></td>
        <td><?= $item->AgentCompany->Name ?></td>
        <td><?= $item->Channel->Name ?></td>
        <td><?= $item->TypeName ?></td>
        <td><?= $item->Type==Application_Model_ExpressCost::TYPE_FirstPrice?$item->FirstPrice:'' ?></td>
        <td><?= $item->Type==Application_Model_ExpressCost::TYPE_FirstPrice?$item->SubsequentPrice:'' ?></td>
        <td><?= $item->Type!=Application_Model_ExpressCost::TYPE_FirstPrice?$item->Price:'' ?></td>
        <td><?= $item->getMoney($this->weight) ?></td>
        <td><?= $item->getMoney($this->weight) * $item->Express->FuelSurcharge ?></td>
        <td><?= number_format($item->getMoney($this->weight) * ($item->Express->FuelSurcharge + 1),2)?></td>
    </tr>
    <? } ?>
</table>